package mya.mes.mdc.module;

import mya.common.jaxrs.module.AppConfig;
import mya.common.jaxrs.module.MyaApplication;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Mdc入口程序
 */
public class MdcApp {

    private static final Logger logger = LogManager.getLogger(MdcApp.class);

    private static final String MYA_HOME = "D:\\mya\\project\\mya-mes-config\\myahome\\";


    public static void main(String[] args) {

        AppConfig appConfig = new AppConfig()
                .appName("MdcApp")
                .gateURI("http://localhost:8787/")
                .serverURI("http://localhost:801/")
                .myaHomePath(MYA_HOME);

        MyaApplication app = new MyaApplication(appConfig);

        app.start();
    }

}